//
//  MZRegisteredTableViewController.m
//  明和智能
//
//  Created by 李李善 on 2018/8/23.
//  Copyright © 2018年 inno. All rights reserved.
//

#import "MZRegisteredTableViewController.h"
#import "MZLoginCell.h"
@interface MZRegisteredTableViewController ()

@end

@implementation MZRegisteredTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
}
-(void)onLoadViewByWillAppear:(UIView *)view
{
    [self.tableView config:^(UITableView *tableView) {
        tableView.backgroundColor = hexCOLOR(@"EBEBEB");
        tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    }];
}
-(void)onClickButton:(UIButton *)button
{
    switch (button.tag) {
        case 101:
        {
            
        }
            break;
            
        default:
        {
            
        }
            break;
    }
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 6;
}

-(void)onSetSubviewSELForCell:(BaseTableViewCell *)cell forTableView:(UITableView *)tableView forIndexPath:(NSIndexPath *)indexPath
{
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
}

-(MCCellInfo *)tableView:(UITableView *)tableView cellForIndexPath:(NSIndexPath *)indexPath IsHeight:(BOOL)isheight
{
    if (indexPath.row==0) {
        return [MCCellInfo configForCellId:cell Class:[MZLoginCell0 class] Height:kFitH(15) TableView:tableView];
    }else if (indexPath.row==1) {
        return [MCCellInfo configForCellId:cell1 Class:[MZLoginCell class] Height:kFitH(50) TableView:tableView];
    }else if (indexPath.row==4) {
        return [MCCellInfo configForCellId:cell5 Class:[MZLoginCell1 class] Height:kFitH(50) TableView:tableView];
    }
    else if (indexPath.row==2)
    {
        return [MCCellInfo configForCellId:cell2 Class:[MZLoginCell4 class] Height:kFitH(50) TableView:tableView];
    }else if (indexPath.row==3)
    {
        return [MCCellInfo configForCellId:cell3 Class:[MZLoginCell4 class] Height:kFitH(50) TableView:tableView];
    }else
    {
        return [MCCellInfo configForCellId:cell4 Class:[MZLoginCell2 class] Height:kFitH(70) TableView:tableView];
    }
}

-(id)cellInitForSourceAtIndexPath:(NSIndexPath *)indexPath
{
    if (indexPath.row==1) {
        return @{@"leftImageName":@"phone_icon",
                 @"placeholder":@"输入手机号"
                 };
    }
    else if(indexPath.row==2) {
        return @{@"leftImageName":@"yzm_icon",
                 @"placeholder":@"输入验证码",
                 @"btnImage":@"",
                 @"btnTitle":@"获取验证码",
                 };
    }
    else if(indexPath.row==3) {
        return @{@"leftImageName":@"password_icon",
                 @"placeholder":@"输入密码6-12位数，不含特殊符号",
                 @"btnImage":@"miwen_icon",
                 @"btnTitle":@"",
                 };
    }else if(indexPath.row==4) {
        return @{@"leftImageName":@"password_icon",
                 @"placeholder":@"确认密码"
                 };
    }
    else if (indexPath.row==5)
    {
        return @{@"leftImageName":@"",
                 @"placeholder":@"立即注册"
                 };
    }
    return nil;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
